package edu.ccut.saturn.component;

/**
 * 自定义异常类型，表示验证失败。保存了验证结果<code>SaturnValidateFailedException</code>的实例。
 * 
 * @author 谷钰
 * 
 * @version 1.0 2008.9.03
 * 
 */
public class SaturnValidateFailedException extends Exception {

	private static final long serialVersionUID = 3674494859227329117L;
	
	private ValidateResult validateResult;

	public SaturnValidateFailedException() {
		super();
	}

	public SaturnValidateFailedException(String message, Throwable cause) {
		super(message, cause);
	}

	public SaturnValidateFailedException(String message) {
		super(message);
	}

	public SaturnValidateFailedException(Throwable cause) {
		super(cause);
	}

	public SaturnValidateFailedException(ValidateResult validateResult) {
		this.validateResult = validateResult;
	}

	public ValidateResult getValidateResult() {
		return validateResult;
	}
}
